package com.yzh.croom.repository;

import com.yzh.croom.model.domain.Room;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface RoomRepository extends JpaRepository<Room,Integer> {
    @Query("select r from  tb_room r")
    public List<Room> getAllRoom();
}
